<include file="public/min-header"/>
<div class="wrapper">
    <include file="public/breadcrumb"/>
	<section class="content">
       <div class="row">
       		<div class="col-xs-12">
	       		<div class="box">
	             <!-- /.box-header -->
	             <div class="box-body">	             
	           		<div class="row">
	            	<div class="col-sm-12">
		              <table id="list-table" class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info">
		                 <thead>
		                   <tr role="row">
			                   <th class="sorting_asc" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 294px;">单页栏目名称</th>
							   <th class="sorting_asc" tabindex="0" aria-controls="example1">单页标题</th>
							   <th class="sorting" tabindex="0" aria-controls="example1"  aria-label="Platform(s): activate to sort column ascending">显示</th>
			                   <th class="sorting" tabindex="0" aria-controls="example1"  aria-label="CSS grade: activate to sort column ascending">操作</th>
		                   </tr>
		                 </thead>
						<tbody>
						  <foreach name="single" item="vo" key="k" >
						  	<tr role="row" align="center">
		                     <td>{$vo.cat_name|getSubstr=0,33}</td>
								<td>{$vo.title|getSubstr=0,33}</td>
		                     <td>
                                 <img width="20" height="20" src="__PUBLIC__/images/<if condition='$vo.is_open eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('SinglePage','cat_id','{$vo.cat_id}','is_open',this)"/>
                            </td>
		                     <td>
		                      <a class="btn btn-primary" href="{:U('Article/singleHandle',array('cat_id'=>$vo['cat_id']))}"><i class="fa fa-pencil"></i></a>
				     		</td>
		                    </tr>
		                  </foreach>
		                   </tbody>
		                 <tfoot>
		                 
		                 </tfoot>
		               </table>
	               </div>
	          </div>
              <div class="row">
              	    <div class="col-sm-6 text-left"></div>
                    <div class="col-sm-6 text-right">{$page}</div>		
              </div>
	          </div><!-- /.box-body -->
	        </div><!-- /.box -->
       	</div>
       </div>
   </section>
</div>
</body>
</html>